/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "微软雅黑", sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url('images/27e3637f1390d14f9a4333ae4020224.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 1. 头部样式 */
.header {
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end; /* 搜索框靠右 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.search-box button {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 0 4px 4px 0;
  background-color: #f8f8f8;
  cursor: pointer;
}

/* 2. 导航栏样式 */
.nav {
  background-color: #2c3e50; /* 深色背景 */
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav li {
  margin-right: 1px;
}

.nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  transition: background 0.3s;
}

.nav a:hover {
  background-color: #34495e;
}

/* 3. 图片展示区 */
.banner img {
  width: 100%;
  height: auto; /* 保持宽高比 */
  display: block; /* 去除底部间隙 */
}

/* 4. 新闻版块（4宫格） */
.news {
  padding: 30px 20px;
}

.news h2 {
  margin-bottom: 20px;
  font-size: 24px;
  border-left: 5px solid #2c3e50;
  padding-left: 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4列布局 */
  gap: 20px;
}

.news-item {
  background-color: #f8f8f8;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 5. 公告版块 */
.notice {
  padding: 30px 20px;
  background-color: #f9f9f9;
}

.notice h2 {
  margin-bottom: 10px;
  font-size: 24px;
  border-left: 5px solid #2c3e50;
  padding-left: 10px;
}

.notice ul {
  list-style: inside square; /* 列表样式 */
}

/* 6. 主内容区（3个子版块） */
.content {
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列布局 */
  gap: 20px;
}

.content section {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 7. 专题网站版块（12宫格简化） */
.subject {
  padding: 30px 20px;
}

.subject h2 {
  margin-bottom: 20px;
  font-size: 24px;
  border-left: 5px solid #2c3e50;
  padding-left: 10px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12列布局 */
  gap: 10px;
}

.subject-item {
  background-color: #f8f8f8;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
  grid-column: span 3; /* 每个占3列，12/3=4行 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 8. 页脚样式 */
.footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}
